<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>CSS样式优先级</title>
</head>
<style>
    p{
        color: crimson;
    }
</style>
<body>
<p style="color: blue">床前明月光</p>
</body>
</html>
<!--谁的代码离得近就显示谁的颜色-->
<!--就近原则-->